<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
<head>
<meta charset="UTF-8">
<title>用户中心-保密问题</title>
<jsp:include page="/include/wchat/head.jsp"></jsp:include>

<link type="text/css" rel="stylesheet" href="/v2/wchat/resrc/css/account.css">
</head>
<body>
<div id="header"> <a href="/wchatSecurityCenter.do" class="backto">返回</a>
  <div class="title-sub">保密问题</div>
</div>
<div id="wrap">
  <div class="secret-question">
  <form action="/setSecurityQuestion2.do" method="POST" id="setSQForm">
    <div class="link-touch">
      <ul class="items">
        <li>
          <label class="txt">密保问题</label>
          <select class="select" id="securityQuestion" name="paramMap.securityQuestion">
            <option value="您的生日">您的生日?</option>
			<option value="您父亲的姓名">您父亲的姓名?</option>
			<option value="您母亲的姓名">您母亲的姓名?</option>
			<option value="您高中班主任姓名">您高中班主任姓名?</option>
			<option value="您的出生地">您的出生地?</option>
			<option value="您初恋的姓名">您初恋的姓名?</option>
			<option value="您公司的名称">您公司的名称?</option>
			<option value="您的职业">您的职业?</option>
			<option value="您的爱好">您的爱好?</option>
			<option value="您的配偶">您的配偶?</option>
			<option value="您的小学校名">您的小学校名?</option>
			<option value="您的小学班主任姓名">您的小学班主任姓名?</option>
           </select>
        </li>
        <li>
          <label class="txt" >答案</label>
          <input type="text" class="input" id="answer" name="paramMap.answer" maxlength="255" placeholder="请输入问题的答案">
        </li>
      </ul>
      <div class="vtip errs" id="errorTip">
      		${errorTip}
      </div>
    </div>
  </form>
  </div>
  <div class="operate-button">
  <c:choose> 
	<c:when test="${requestScope.errorTip != null}">
	  <a href="javascript:;" class="btn">设定密保问题</a>
	</c:when>
	<c:otherwise>
	  	<a href="javascript:;" class="btn" id="submit">设定密保问题</a>
	</c:otherwise>
  </c:choose>  
  </div>
</div>



<jsp:include page="/include/wchat/footer.jsp"></jsp:include>





<script type="text/javascript">
$(function(){
	$("#submit").click(function(){
		if($("#answer").val() == ''){
			$("#errorTip").html("请输入密保问题的答案").show();
			return;
		}
		$("#setSQForm").submit();
	});
});
</script>
</body>
</html>